/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.service;

import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cmcc.zysoft.infocollection.dao.TagPcDao;
import com.cmcc.zysoft.infocollection.model.Tag;
import com.starit.common.dao.hibernate.HibernateBaseDao;
import com.starit.common.dao.service.BaseServiceImpl;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: TagPcService.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-9-28 下午5:04:27
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Service
public class TagPcService extends BaseServiceImpl<Tag, Long> {

	@Resource
	private TagPcDao tagPcDao;
	
	@Override
	public HibernateBaseDao<Tag, Long> getHibernateBaseDao() {
		return this.tagPcDao;
	}
	
	/**
	 * 根据关键字查询标签信息(无分页).
	 * @param keyword 关键字
	 * @return map
	 */
	public Map<String, Object> getTags(String keyword) {
		return this.tagPcDao.getTags(keyword);
	}
}